<script setup>
// 路由回退
const onClickLeft = () => history.back()
</script>

<template>
  <van-nav-bar left-text="返回" left-arrow @click-left="onClickLeft">
    <template #title>
      <slot name="title"></slot>
    </template>
    <!-- 右上角区域 -->
    <template #right>
      <slot name="right"></slot>
    </template>
  </van-nav-bar>
</template>

<style scoped></style>
